package com.zretc.service;

import com.zretc.entity.Order;

import java.util.List;
import java.util.Map;

/**
 * @author 子玉
 * 订单业务
 */

public interface OrderService {
    /**
     * 我要寄件
     *
     * @return
     */
    boolean addOrder(Map<String, Object> map);


    /**
     * 添加订单信息
     *
     * @param: order
     * @author: bLUeSuMMerDreamer
     * @date: 2020/7/24 21:18
     * @return: java.lang.Boolean
     */
    Boolean addOrder2(Order order);

    /**
     * 根据参数更新订单
     *
     * @param: setParam
     * @param: whereParam
     * @author: bLUeSuMMerDreamer
     * @date: 2020/7/26 3:18
     * @return: java.lang.Integer
     */
    Integer updateOrderByParam(Map<String, Object> setParam, Map<String, Object> whereParam);

    /**
     * 根据Id拿到Order
     *
     * @param :orderId
     * @author: bLUeSuMMerDreamer
     * @date: 2020/7/28 0:32
     * @return: com.zretc.entity.Order
     */
    Order getOrderById(String orderId);

    /**
     * 根据参数获取order列表
     *
     * @param :params
     * @author: bLUeSuMMerDreamer
     * @date: 2020/7/29 2:50
     * @return: java.util.List<com.zretc.entity.Order>
     */
    List<Order> getOrderByParam(Map<String, Object> params);
}
